import {get,post,del,put} from './request'
// 登录相关信息
export const login=(data:object)=>post('/system/user/login',data);
export const logout=()=>post('/system/user/logout');
export const register=(data: object)=>post('/system/user/register',data);
export const loginInfo=()=>get('/system/user/getLoginInfo');
//用户相关接口
export const page=(data: object)=>get('/system/user/list',data);
export const assignUserPage=(data: object)=>get('/system/user/assignUserPage',data);
export const unAssignUserPage=(data: object)=>get('/system/user/unAssignUserPage',data);
export const info=(param: any)=>get('/system/user/getOne',param);
export const save=(data: object)=>post('/system/user/add',data);
export const edit=(data: object)=>put('/system/user/update',data);
export const remove=(param: any)=>del('/system/user/delete',param);